@charset 'utf-8';
@import '_color.scss';
@import '_table.scss';
@import '_modal.scss';
@import '_select.scss';
body{
    background-color: #403e3e;
}
.header{
    overflow: hidden;
    height: 80px;
    line-height: 80px;
    background-color: #090e0e;
    >h3{
        line-height: 80px;
        font-size: 24px;
        text-align: center;
        color: #fff;
    }
    a{
        float: right;
        margin-right: 20px;
        color: $baseColor;
        font-size: 14px;

    }
}
.main-box{
    margin-top: 4px;
    height: calc(100vh - 84px);
    overflow: hidden;
    .main-aside{
        float: left;
        width:166px;
        height: 100%;
        border-right: 1px solid #333;
        background-color: #313030;
        /* 用户头像 */
        .user-box{
            margin-bottom: 30px;
            .user-img{
                margin:20px auto 10px;
                width: 56px;
                height: 56px;
                border-radius: 50%;
                overflow: hidden;
            }
           .user-name{
                text-align: center;
                color: #fff;
                >a{
                   color: #fff;
                    &:hover{
                       color: $baseColor;
                    }
                }
            }
        }
        /* 侧边菜单 */
        .aside-menu{
            li{
                line-height: 40px;
                margin: 20px 0;
                a{
                    display: flex;
                    justify-content: space-between;
                    padding:0 10px;
                    color: #fff;
                    font-size: 14px;
                   span{
                       display: block;
                       width: 84px;
                       text-align: left;
                   }
                }
                &:hover{
                    a{
                        color: $baseColor;
                    }
                }
                &.active{
                    a{
                        color: $baseColor;
                    }
                }
                 // 下拉菜单
                 .dropDown{
                    >a{
                        display: block;
                        font-size: 12px;
                        color:#fff;
                        text-align: left;
                        line-height: 32px;
                        margin: 10px 0;
                        padding-left: 50px;
                    }
                    >a.active{
                        color: $baseColor;
                    }
                }
            }
        }
    }
    .main-body{
        margin-left: 176px;
        height: 100%;
        background-color: #313030;
        box-sizing: border-box;
        overflow-y: auto;
        .main-header{
            height: 60px;
            background-color: #313030;
            color: #fff;
            padding: 0 20px;
            >h3{
                line-height: 60px;
                font-size: 16px;
                color: $baseColor;
                font-weight: bold;
            }
            
        }
        .main-content{
            position: relative;
            padding:10px 20px;
            .editor-btn,.search-btn{
                display: inline-block;
                width: 70px;
                height: 32px;
                margin: 0 3px;
                text-align: center;
                line-height: 32px;
                font-size: 12px;
                color: #fff;
                border-radius: 4px;
                background-color: $baseColor;
            }
            .add-btn{
                display: inline-block;
                width: 70px;
                height: 32px;
                margin: 0 3px;
                text-align: center;
                line-height: 32px;
                font-size: 12px;
                color: #fff;
                border-radius: 4px;
                background-color: transparent;
                border: 1px solid $baseColor;
            }
            .form-group{
                display: flex;
                align-items: center;
                margin-right: 20px;
                >label{
                    display: block;
                    margin-right: 10px;
                    width: 80px;
                }
                input{
                    width: 660px;
                    height: 32px;
                    padding: 0 10px;
                    border: 1px solid rgba(255,255,255,.4);
                    background-color: transparent;
                    border-radius: 4px;
                }
            }
            .select-date{
                width: 240px!important;
                height: 32px!important;
                border-radius: 4px;
                background-color: transparent;
                border: 1px solid $baseColor;
                color: #fff;
            }
            .table-tool{
                display: flex;
                margin: 10px 0 20px;
                .search-box{
                    display: flex;
                    width: 320px;
                    height: 32px;
                    margin-right: 20px;
                    a{
                        display: block;
                        width: 60px;
                        height: 32px;
                        line-height: 32px;
                        border-radius: 0 4px 4px 0;
                        text-align: center;
                        background-color: $baseColor;
                        color: #fff;
                    }
                    input{
                        flex: 1;
                        border: 1px solid $baseColor;
                        border-radius: 4px;
                        color: #fff;
                        border-right: 0;
                        margin-right: -2px;
                        background-color: transparent;
                    }
                }
               
                .input-box{
                    width: 320px;
                    height: 32px;
                    margin-right: 10px;
                    border: 1px solid $baseColor;
                    border-radius: 4px;
                    background-color:transparent;
                }
            }
          
            .map-box{
                height: 100%;
                width: 100%;
            
            }
            .map-tool{
                position: absolute;
                left: 40px;
                top:20px;
                z-index: 100;
                align-items: center;
              .fast-result{
                  width: 120px;
                  height: 48px;
                  margin-right: 10px;
                  padding: 4px;
                  text-align: center;
                  height: auto;
                  border-radius: 4px;
                  background-color: rgba(0,0,0,.4);
                  border: 1px solid $baseColor;
                  color: #fff;
                  font-size: 14px;
                  box-sizing: border-box;
                  p{
                      color: $baseColor;
                      font-weight: bold;
                      margin-bottom: 5px;
                  }
              } 
              .map-date{
                width: 120px;
                height: 32px;
                margin-right: 10px;
                background-color: rgba(0,0,0,.4);
                border-radius: 4px;
                border: 1px solid $baseColor;
                color: #fff;
            }
              .map-time{
                  width: 240px;
                  height: 32px;
                  margin-right: 10px;
                  background-color: rgba(0,0,0,.4);
                  border-radius: 4px;
                  border: 1px solid $baseColor;
                  color: #fff;
              }
            }
           .table-box{
               flex: 1;
           }
          
        }
    }
}

    // 分页
    .pageBox {
        position: absolute;
        bottom: 20px;
        right: 40px;

        // 修改分页样式
        .page-item {
            margin-right: 10px;
            &:hover{
                .page-link {
                    border-color: $greenText;
                    color: $greenText;
                }
            }
        }

        .page-item.active {
            .page-link {
                background-color: rgba(30, 237, 147, .2);
                border-color: transparent;
                color: $greenText;
                &:hover{
                    background-color: rgba(30, 237, 147, .5);

                }
            }
        }

        .page-link {
            background-color: transparent;
            border-radius: 0;
            border-color: #666;
            color: #666;
            box-shadow: 0;
        }
    }


.flex-column{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.flex-row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.flex1{
    flex: 1;
}
.align-top{
    align-items: flex-start!important;
}

